package com.deer.wms.base.system.web;

import com.deer.wms.project.root.core.result.Result;
import com.deer.wms.project.root.core.result.ResultGenerator;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/erpBack")
public class ErpBackRecodeController {

//    @Autowired
//    private ErpBackRecordService erpBackRecordService;

//    @ApiOperation(value = "查询erp回传记录", notes = "查询erp回传记录")
////    @GetMapping("/selectList")
////    public Result selectList(Integer type, Integer state, String erpNo, Integer pageNum, Integer pageSize) {
////        PageHelper.startPage(pageNum, pageSize);
////        List<ErpBackRecord> billList = erpBackRecordService.selectList(type,state,erpNo);
////        PageInfo pageInfo = new PageInfo(billList);
////        return ResultGenerator.genSuccessResult(pageInfo);
////    }

    @ApiOperation(value = "删除erp回传记录", notes = "删除erp回传记录")
    @GetMapping("/deletedErpLog")
    public Result deletedErpLog(Integer id) {
//        erpBackRecordService.deleteById(id);
        return ResultGenerator.genSuccessResult();
    }

    //报错（作废）
    @ApiOperation(value = "批量删除erp回传记录", notes = "批量删除erp回传记录")
    @GetMapping("/deletedErpLogByIds")
    public Result deletedErpLogByList(String ids) {
//        erpBackRecordService.deleteByIds(ids);
        return ResultGenerator.genSuccessResult();
    }

}
